c_ = sparse(16,1);
c_(1) = 1;
b_ = sparse(14,1);
b_(2:2) = u;
b_(4:4) = l;
b_(6:6) = u;
b_(8:8) = l;
b_(13:13) = -0.5;
b_(14:14) = -0.5;
A_ = sparse(14, 16);
A_(1:1, 12:12) = 1.0; A_(1:1, 2:2) = 1.0; A_(1:1, 13:13) = -1.0;
A_(2:2, 13:13) = 1.0;
A_(3:3, 14:14) = 1.0; A_(3:3, 3:3) = 1.0; A_(3:3, 12:12) = -1.0;
A_(4:4, 14:14) = 1.0;
A_(5:5, 15:15) = 1.0; A_(5:5, 4:4) = 1.0; A_(5:5, 13:13) = -1.0;
A_(6:6, 13:13) = 1.0;
A_(7:7, 14:14) = 1.0; A_(7:7, 5:5) = 1.0; A_(7:7, 15:15) = -1.0;
A_(8:8, 14:14) = 1.0;
A_(9:9, 12:12) = 1.0; A_(9:9, 16:16) = 1.0; A_(9:9, 1:1) = -1.0;
A_(10:10, 9:9) = 0.5; A_(10:10, 16:16) = 0.5; A_(10:10, 6:6) = -1.0;
A_(11:11, 9:9) = 0.5; A_(11:11, 16:16) = -0.5; A_(11:11, 7:7) = -1.0;
A_(12:12, 12:12) = 1.0; A_(12:12, 15:15) = -1.0; A_(12:12, 8:8) = -1.0;
A_(13:13, 15:15) = 0.5; A_(13:13, 10:10) = -1.0;
A_(14:14, 15:15) = -0.5; A_(14:14, 11:11) = -1.0;
G_ = sparse(11, 16);
G_(1:1:1, 2:2) = -speye(1, 1);
G_(2:1:2, 3:3) = -speye(1, 1);
G_(3:1:3, 4:4) = -speye(1, 1);
G_(4:1:4, 5:5) = -speye(1, 1);
G_(5:1:5, 9:9) = -speye(1, 1);
G_(6:1:6, 6:6) = -speye(1, 1);
G_(7:1:7, 7:7) = -speye(1, 1);
G_(8:1:8, 8:8) = -speye(1, 1);
G_(9:1:9, 10:10) = -speye(1, 1);
G_(10:1:10, 11:11) = -speye(1, 1);
G_(11:1:11, 9:9) = -speye(1, 1);
h_ = zeros(11, 1);
dims.q = [3,3];
dims.l = 5;
[x_codegen, y_, info_] = conelp(full(c_), G_, h_, dims, A_, full(b_));
t0 = x_codegen(1:1);
t4 = x_codegen(2:2);
t5 = x_codegen(3:3);
t6 = x_codegen(4:4);
t7 = x_codegen(5:5);
t3z0 = x_codegen(6:6);
t3z1 = x_codegen(7:7);
t1 = x_codegen(8:8);
t2 = x_codegen(9:9);
t2z0 = x_codegen(10:10);
t2z1 = x_codegen(11:11);
x1 = x_codegen(12:12);
pu = x_codegen(13:13);
pl = x_codegen(14:14);
x2 = x_codegen(15:15);
t3 = x_codegen(16:16);
ecos_optval = 1*info_.pcost;
